<extend name="Layout:layout_dialog" />
<block name="body_main">
    <form id="frmMain" action="{:U('customer_import_save')}" method="post" enctype="multipart/form-data">
        <table class="xsui-form-table">
            <tr>
                <th>Excel文件：</th>
                <td><input type="file" name="xlsFile" title="请选择Excel文件!" required /></td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td>
                    <!--<a href="__ROOT__/Assets/ImportTemplate/customer_import_file.xlsx" target="_blank">[下载模板]</a>-->
                    <a href="{:U('get_template_file')}">[下载模板]</a>
                </td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td>
                    <div style="line-height:24px; padding:5px 0;">
                        <h3 style="font-weight:bold; color:#090;">如导入遇到问题，请仔细阅读以下规则：</h3>
                        1. 只支持导入Excel文件<br />
                        2. Excel文件名<strong style="font-weight: bold;color:#F00; ">不能含有中文</strong><br />
                        3. Excel文件内容<strong style="font-weight: bold;color:#F00; ">行数建议不超过1万行</strong>，超过1万行请拆分到多个Excel文件中<br />
                        4. 内容列格式：姓名，电话，性别，地址<span style="font-weight: bold;color:#F00; ">(标题头必须一致!)</span><br />
                        5. <span style="font-weight: bold;color:#F00; ">如不符合格式请先整理后再导入!</span>
                    </div>
                </td>
            </tr>
        </table>
        <div style="display:none">
            <button type="submit">提交</button>
        </div>
    </form>
</block>